package com.xcy.xcyrpc.serializer;


import cn.hutool.json.ObjectMapper;
import com.xcy.xcyrpc.model.RpcRequest;
import com.xcy.xcyrpc.model.RpcResponse;

import java.io.IOException;

/**
 * Json 序列化器
 *
 */
//todo hutool库有问题，方法不存在。暂时先不实现，后续再实现
public class JsonSerializer implements Serializer {

    /**
     * 序列化
     * @param object
     * @return
     * @param <T>
     * @throws IOException
     */
    @Override
    public <T> byte[] serialize(T object) throws IOException {
        return new byte[0];
    }

    /**
     * 反序列化
     * @param bytes
     * @param type
     * @return
     * @param <T>
     * @throws IOException
     */
    @Override
    public <T> T deserialize(byte[] bytes, Class<T> type) throws IOException {
        return null;
    }
}

